package com.aimao.blog.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * 首页Banner
 *
 * @Author Jack Chen
 * @Create 2019-01-30 10:45
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Banner implements Serializable {

    @NotNull(message = "ID不能为空")
    private Integer id;

    private String image;

    private String text;

    private String href;

    @JSONField(format = "yyyy-MM-dd")
    private Date createTime;

}
